package com.imooc;

import com.imooc.bilibili.websocket.WebSocketService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * ProjectName imooc-bilibili
 *
 * @author xieyucan
 * <br>CreateDate 2022/10/21 15:32
 */
@EnableTransactionManagement
@SpringBootApplication
@EnableScheduling
public class ImoocBiliniliApplication {
    public static void main(String[] args) {
        ApplicationContext context= SpringApplication.run(ImoocBiliniliApplication.class,args);
        WebSocketService.setApplicationContext(context);
    }
}
